import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vite.dev/config/
export default defineConfig({
  // 前端文件存放路径
  base: '/webui',
  plugins: [vue()],
  server: {
    proxy: {
      '/agentmap': {
        target: 'http://1.1.1.1:8713',
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/agentmap/, '')
      }
    }
  }
})
